<?php

class logcController extends baseController {
	
	public function show(){
		$where = null;
		$pager = PagerHelper::split(CheckinHelper::count($where), 50);
		$list = CheckinHelper::getList($where, $pager['r_offset'], $pager['p_size']);
		$this->assign('list', $list);
		$this->display();
	}
	
	/**
	 * 系统管理日志
	 */
	public function manage(){
		$where = null;
		$count = Db::get('LogAdmin')->count()->where($where)->getCol();
		$pager = PagerHelper::split($count, 50);
		$list  = Db::get('LogAdmin')->select()->where($where)->order('id DESC')
							->limit($pager['r_offset'], $pager['p_size'])->getAll();
		$this->assign('list', $list);
		$this->display();
	}
	
}

?>
